package com.yxc.plan.wolf.domain.repository;

import com.yxc.plan.wolf.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description :
 * @Author : abc@vanke.com
 * @Date : 2018/12/10 3:39 PM
 */
@Repository
public interface UserRepository extends JpaRepository<User, Long>, JpaSpecificationExecutor<User> {

    User findByDeletedAndPhone(Boolean deleted, String phone);

    List<User> findByDeletedAndIdIn(Boolean deleted, List<Long> ids);
}
